<template>
  <el-container>
    <el-header>注册界面</el-header>
    <el-main>
      <el-input v-model="phone" placeholder="输入电话号码"></el-input>
      <el-input v-model="password" placeholder="输入密码"></el-input>
      <el-button @click="jump('/main')">注册</el-button>
      <el-button @click="jump('/')">登录</el-button>
    </el-main>
  </el-container>
</template>

<script>
    export default {
        name: "Register",
        data() {
            return {
                phone: '',
                password: ''
            }
        },
        methods: {
            jump(route) {
                this.$router.push(route);
            }
        }
    }
</script>

<style scoped>

</style>
